package edu.spec.dengyan.week05.class02;

public class Dog {
    private String name;
    private String gender;
    private int age;
    private String food;
    private String kind;
    private String barkSound;
    public Dog()
    {

    }

    public Dog(String name,String gender,int age,String food,String kind,String barkSound)
    {
        this.name=name;
        this.gender=gender;
        this.age=age;
        this.food=food;
        this.kind=kind;
        this.barkSound=barkSound;
    }

    public void eat()
    {
        System.out.println( "我叫"+getName() +"我吃"+ "吃虫。");
    }

    public void born()
    {
        System.out.println("我出生在：" +
                getAge()+"年前。");
    }

    public void breed()
    {
        System.out.println("我繁殖很快。");
    }

    public void suck()
    {
        System.out.println(getName() + "小时候吃奶。");
    }
    public void bark()
    {
        System.out.println("我是"+getKind() + "我的叫声像"+getbarkSound());
    }
    /*public static void main(String[] args){

    Aninal s=new Aninal("麻雀","雌性",2);
    System.out.println("我家动物出生在：" + s.getAge()+"年前。");
    System.out.println( s.getName() + "吃虫。");
    System.out.println( s.getName() + "卵生。");

    }*/
    public String getName()
    {
        return name;
    }

    public String getGender()
    {
        return gender;
    }

    public int getAge()
    {
        return age;
    }

    public String getKind()
    {
        return kind;
    }

    public String getbarkSound()
    {
        return barkSound;
    }
}
